Skip to content

chore(deps): bump the backend group with 3 updates - #242

Open
dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/backend-a3de8686f3
Open

dependabot[bot] wants to merge 1 commit into
masterfrom
dependabot/npm_and_yarn/backend-a3de8686f3

Conversation

@dependabot

@dependabot dependabot Bot commented on behalf of github Nov 16, 2026

Copy link
Copy Markdown
Contributor

Bumps the backend group with 3 updates: better-auth, hono and @hono/node-server.

Updates better-auth from 1.7.18 to 1.7.22

Release notes

Sourced from better-auth's releases.

v1.7.22

better-auth

Bug Fixes

  • Fixed verification value consumption hanging on Cloudflare Workers when an earlier request for the same identifier ended mid-query (#12451)
  • Fixed module-scope auth instances on Cloudflare Workers logging a schema validation error on every cold start by validating on first use (#12448)
  • Fixed deferSessionRefresh refresh requests failing with a 415 error in Next.js and Nuxt (#12330)
  • Fixed ReferenceError: window is not defined when a client session subscription is cleaned up after a test environment tears down its globals (#12324)
  • Fixed client session refresh listeners piling up on the server during SSR (#12324)
  • Fixed session polling never firing when the runtime's navigator does not report connectivity (#12462)
  • Fixed OAuth sign-up rejected by a user.create.before hook returning false logging a TypeError (#12331)
  • Fixed deleteOrganization clearing the session's active organization when a beforeDeleteOrganization hook rejected the delete (#12334)
  • Fixed revokeSession, revokeSessions, and deleteUser({ token }) to expire session cookies when revoking the current session or deleting the user (#12321)
  • Fixed getSession to no longer leave an expired session in the request context after returning null (#12459)

For detailed changes, see CHANGELOG

@better-auth/core

Bug Fixes

  • Fixed introspected access tokens that fail aud, iss, exp, or nbf claim checks to return a 401 instead of a 500 (#12432)
  • Fixed getSession failing with "Failed to get session" when a user.additionalFields entry references a table outside the Better Auth schema (#12333)
  • Fixed resource-server challenges turning rejected requests into 500 errors, and added invalid_token error details when a presented token fails verification (#12445)

For detailed changes, see CHANGELOG

@better-auth/oauth-provider

Bug Fixes

  • Fixed failed requests using the DPoP authorization scheme to receive a DPoP challenge instead of a Bearer challenge (#12447)
  • Fixed resource-server challenges turning rejected requests into 500 errors, and added invalid_token error details when a presented token fails verification (#12445)
  • Fixed /oauth2/userinfo to send a WWW-Authenticate challenge on every 401 response, including DPoP failures and requests with no token (#12446)

For detailed changes, see CHANGELOG

@better-auth/drizzle-adapter

Bug Fixes

  • Fixed getSession failing with "Failed to get session" when a user.additionalFields entry references a table outside the Better Auth schema (#12333)

For detailed changes, see CHANGELOG

@better-auth/mcp

Bug Fixes

... (truncated)

Changelog

Sourced from better-auth's changelog.

1.7.22

Patch Changes

  • #12324 80c407b Thanks @​bytaesu! - Fixed ReferenceError: window is not defined when a client session subscription is cleaned up after a test environment such as happy-dom tears down its globals.

  • #12462 d32a30a Thanks @​bytaesu! - Fixed session polling never firing when the runtime's navigator does not report connectivity.

  • #12324 80c407b Thanks @​bytaesu! - Fixed client session refresh listeners piling up on the server during SSR.

  • #12321 946177e Thanks @​bytaesu! - Revoking your current session with revokeSession or revokeSessions, and deleting your account with deleteUser({ token }), now expire the session cookies, so a cached session is no longer returned afterwards.

  • #12459 d210421 Thanks @​bytaesu! - getSession no longer leaves an expired session in the request context after returning null.

  • #12331 485567e Thanks @​bytaesu! - OAuth sign-up rejected by a user.create.before hook returning false no longer logs a TypeError. It still fails with unable_to_create_user.

  • #12334 ec3047d Thanks @​bytaesu! - Fixed deleteOrganization clearing the session's active organization when a beforeDeleteOrganization hook rejected the delete. The active organization is now cleared only after the organization is actually deleted.

  • #12330 d521343 Thanks @​bytaesu! - Fix deferSessionRefresh refresh requests failing with 415 in Next.js and Nuxt, where the bodyless POST /get-session reached the handler as an empty stream without a Content-Type.

  • #12451 71052af Thanks @​bytaesu! - On Cloudflare Workers, consuming a verification value no longer hangs when an earlier request for the same identifier ended mid-query. A superseded code can also no longer be consumed while a newer one is being verified on a database without transactions.

  • #12448 79219b4 Thanks @​bytaesu! - Schema validation now runs when the auth instance is first used instead of when it is created, so a module-scope instance on Cloudflare Workers no longer logs a validation error on every cold start. On every runtime, a mismatch is no longer logged at startup and is reported by the requests that fail.

  • Updated dependencies [6536174, 262adc0, e9d8e59, 79219b4]:

    • @​better-auth/core@​1.7.22
    • @​better-auth/drizzle-adapter@​1.7.22
    • @​better-auth/prisma-adapter@​1.7.22
    • @​better-auth/telemetry@​1.7.22
    • @​better-auth/kysely-adapter@​1.7.22
    • @​better-auth/memory-adapter@​1.7.22
    • @​better-auth/mongo-adapter@​1.7.22

1.7.21

Patch Changes

  • #12126 4739122 Thanks @​hardikguptaofficialgit! - On Prisma with MongoDB, when your id columns use @db.ObjectId, magic link and email OTP sign-in for users with an unverified email no longer fail with a 500 (Malformed ObjectID). SAML sign-in, DPoP-bound OAuth requests, and private_key_jwt client authentication are fixed the same way, and Sign-In with Ethereum now keeps the email the user supplied instead of a placeholder. Setups with plain String id columns and other databases are unaffected.

  • #12392 a277020 Thanks @​gustavovalverde! - Fixed the device approval page showing a valid code as invalid when the same signed-in user looked it up twice at once, such as under React Strict Mode in development.

  • #12052 1c3410a Thanks @​lakshya-dhariwal! - If you set advanced.backgroundTasks.handler and your database adapter runs transactions (the built-in Kysely connection, MongoDB with client, or Prisma or Drizzle with transaction: true), email sign-up now keeps the database writes made while sending the verification email or running onExistingUserSignUp. Before, those writes failed because the sign-up had already been saved. With emailOTP({ overrideDefaultEmailVerification: true }), the code was never stored, so new users could not verify their email.

    Whatever adapter or background handler you use, a sign-up verification email now goes out after the new user is saved, and onExistingUserSignUp, when a duplicate sign-up triggers it, runs after the request's database work completes. If sendVerificationEmail throws, the sign-up succeeds and the error is logged; before, the sign-up failed. To reject a sign-up, use a databaseHooks.user.create.before hook. If onExistingUserSignUp throws, the error is logged and the request still returns the generic response.

  • #12179 9105261 Thanks @​ghazy2001! - Generic OAuth providers configured with discoveryHeaders now send those headers when fetching the provider's signing keys from a jwks_uri on the same origin as discoveryUrl. Before, the keys request went out without them. Providers whose key endpoint requires the headers rejected it, so every ID token failed verification and sign-in failed. A jwks_uri on another origin still gets no headers.

    With discoveryHeaders set, the discovery request now follows redirects only within the origin of discoveryUrl, so the headers no longer reach another host. If your discoveryUrl redirects to another origin, discovery now fails and Better Auth logs an error. Set discoveryUrl to the final URL. Providers without discoveryHeaders are unaffected.

  • #12401 c3a94c5 Thanks @​gustavovalverde! - Generic OAuth providers configured with authorizationHeaders now send those headers when refreshing an access token, not only when exchanging the authorization code. Before, a provider whose token endpoint requires one of those headers accepted the sign-in but rejected every refresh. Providers without authorizationHeaders are unaffected.

... (truncated)

Commits
  • 116c868 chore: release v1.7.22 (#12435)
  • ed1d47b chore(deps): update dependencies (#12472)
  • e4f9215 test(generic-oauth): serve provider discovery locally in helper tests (#12471)
  • d210421 fix(session): keep expired sessions out of the hook context on get-session (#...
  • d32a30a fix(client): treat unknown connectivity as online (#12462)
  • 4e26288 refactor: share the deletion step across deleteUser and its callback (#12457)
  • 6536174 fix(db): ignore references to app tables when resolving joins (#12333)
  • 946177e fix(session): expire session cookies when revoking the current session or del...
  • 80c407b fix(client): skip session refresh listeners during SSR and keep manager teard...
  • 71052af fix: keep verification consumes from hanging on Cloudflare Workers (#12451)
  • Additional commits viewable in compare view

Updates hono from 4.13.17 to 4.13.18

Release notes

Sourced from hono's releases.

v4.13.18

Security fixes

This release includes fixes for the following security issues:

validator() skips validation for requests whose Content-Type parameters are formatted differently

Affects: validator('json') and validator('form') in hono/validator. A Content-Type with whitespace before ;, a trailing ;, or an unusual parameter name was not recognized, so the validator saw an empty object while the handler could read all fields. This completes the fix for GHSA-4h7h-rv7c-7m2v. The validator now decides by the media type alone, as c.req.parseBody() does. GHSA-92p4-j3wq-jmqx

bodyLimit() keeps every transfer chunk of a request body in memory

Affects: bodyLimit() in hono/body-limit. A body sent in very small transfer chunks was retained as one object per chunk, so a request within the configured limit could exhaust memory. The body is now buffered in one array bounded by maxSize. GHSA-39q9-qp46-w8xg

mount() and app.mount() forward a wrong path when a custom getPath adds a prefix

Affects: mount() in hono/mount and app.mount() on 4.13.16 and 4.13.17. With a getPath that prepends a prefix such as the host name, one segment too many was removed from the forwarded path, so middleware scoped inside the mount prefix could be skipped. The prefix is removed from the routed path again. Paths that would change meaning when forwarded now get 400, and an optional regular expression parameter in a mount path throws. GHSA-h25j-2p75-qj33

serveStatic() serves a path that was decoded twice when allowPercentInPath is enabled

Affects: serveStatic() in hono/serve-static and the runtime adapters, only with allowPercentInPath: true. A malformed percent escape in the request path was decoded a second time, so a path that middleware registered on the encoded form did not see could still reach a static file. The file path must now be the same as the routed path, and otherwise the response is 404. GHSA-74fm-fwc7-3fwp


Users who rely on validator(), bodyLimit(), mount() with a custom getPath, or serveStatic() with allowPercentInPath are strongly encouraged to upgrade to this version.

Full Changelog: honojs/hono@v4.13.17...v4.13.18

Commits

Updates @hono/node-server from 2.1.6 to 2.1.8

Release notes

Sourced from @​hono/node-server's releases.

v2.1.8

What's Changed

Full Changelog: honojs/node-server@v2.1.7...v2.1.8

v2.1.7

Security fixes

This release includes a fix for the following security issue:

serveStatic with allowPercentInPath still allows the double-decode middleware bypass

Affects: serveStatic with allowPercentInPath: true. The fix for GHSA-rmxm-3fg6-px4f rejects a path containing %, but the allowPercentInPath option skipped that check entirely. A malformed percent sequence such as /static/%%36%31dmin/secret.txt was routed as /static/%61dmin/secret.txt, so middleware on /static/admin/* did not run, and serveStatic then decoded %61 to a and served static/admin/secret.txt. The default configuration was already fixed in 2.1.3. GHSA-fj57-4f93-cfw6

serveStatic now accepts the second decode only when its result equals the routed path with %25 replaced by %. File names containing a literal %, requested as %25, are served as before.


The same fix ships in hono v4.13.18 (GHSA-74fm-fwc7-3fwp).

Full Changelog: honojs/node-server@v2.1.6...v2.1.7

Commits
  • 1fc1dfc 2.1.8
  • 3463817 fix(listener): do not send a complete response when the body fails during the...
  • f22b99c fix(utils): cancel late HTTP/2 response bodies (#419)
  • 4b885d3 fix(listener): cancel the response body when the client has already disconnec...
  • 653ec79 fix(utils): do not chain a promise per chunk while streaming a response (#417)
  • 7da431b fix(request): forward duplex to the native request (#409)
  • abe63c8 2.1.7
  • cc42986 Merge commit from fork
  • See full diff in compare view

Dependabot will resolve any conflicts with this PR as long as you don't alter it yourself. You can also trigger a rebase manually by commenting @dependabot rebase.


Dependabot commands and options

You can trigger Dependabot actions by commenting on this PR:

  • @dependabot rebase will rebase this PR
  • @dependabot recreate will recreate this PR, overwriting any edits that have been made to it
  • @dependabot show <dependency name> ignore conditions will show all of the ignore conditions of the specified dependency
  • @dependabot ignore <dependency name> major version will close this group update PR and stop Dependabot creating any more for the specific dependency's major version (unless you unignore this specific dependency's major version or upgrade to it yourself)
  • @dependabot ignore <dependency name> minor version will close this group update PR and stop Dependabot creating any more for the specific dependency's minor version (unless you unignore this specific dependency's minor version or upgrade to it yourself)
  • @dependabot ignore <dependency name> will close this group update PR and stop Dependabot creating any more for the specific dependency (unless you unignore this specific dependency or upgrade to it yourself)
  • @dependabot unignore <dependency name> will remove all of the ignore conditions of the specified dependency
  • @dependabot unignore <dependency name> <ignore condition> will remove the ignore condition of the specified dependency and ignore conditions

Bumps the backend group with 3 updates: [better-auth](https://github.com/better-auth/better-auth/tree/HEAD/packages/better-auth), [hono](https://github.com/honojs/hono) and [@hono/node-server](https://github.com/honojs/node-server).


Updates `better-auth` from 1.7.18 to 1.7.22
- [Release notes](https://github.com/better-auth/better-auth/releases)
- [Changelog](https://github.com/better-auth/better-auth/blob/main/packages/better-auth/CHANGELOG.md)
- [Commits](https://github.com/better-auth/better-auth/commits/v1.7.22/packages/better-auth)

Updates `hono` from 4.13.17 to 4.13.18
- [Release notes](https://github.com/honojs/hono/releases)
- [Commits](honojs/hono@v4.13.17...v4.13.18)

Updates `@hono/node-server` from 2.1.6 to 2.1.8
- [Release notes](https://github.com/honojs/node-server/releases)
- [Commits](honojs/node-server@v2.1.6...v2.1.8)

---
updated-dependencies:
- dependency-name: better-auth
  dependency-version: 1.7.22
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: backend
- dependency-name: hono
  dependency-version: 4.13.18
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: backend
- dependency-name: "@hono/node-server"
  dependency-version: 2.1.8
  dependency-type: direct:production
  update-type: version-update:semver-patch
  dependency-group: backend
...

Signed-off-by: dependabot[bot] <support@github.com>
@dependabot dependabot Bot added dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code labels Nov 16, 2026

This branch has not been deployed

No deployments
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

dependencies Pull requests that update a dependency file javascript Pull requests that update javascript code

Projects

None yet

Development

Successfully merging this pull request may close these issues.

0 participants